#pragma once
#include "messages.h"
#include <WinSock2.h>
#include <vector>
using namespace std;

class ICusServ
{
public:
	virtual ~ICusServ() {}

	virtual bool UserReg(char szAccount[], char szPasswd[]) = 0;
	virtual bool UserAuth(char szAccount[], char szPasswd[]) = 0;
	virtual bool UserReserve(int nRouteId, CABIN_TYPE nCabTp) = 0;
	virtual bool CancelOrder(int nOrderId) = 0;

	virtual void UserSelRoute(IN MSG_ROUTE_SEL& sel, vector<ROUT_ENTRY>*& pVecRes) = 0;
	virtual void DestroyRoutes(vector<ROUT_ENTRY>* pVecRes) = 0;

	virtual void ViewOrders(vector<ORDER_ENTRY>*& pVecRes) = 0;
	virtual void DestroyOrders(vector<ORDER_ENTRY>* pVecRes) = 0;
};